<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Effettua il login</title>
	<link rel="stylesheet" type="text/css" href="../styles/style.css" />
</h:head>
<h:body>
<div id="container">
<div id="box">
<header class="banner">
<span id="titoloPagina"> Inserisci i dati per effettuare il Login </span>
</header>
<div id="externalborderReg">
<p:spacer height="70px" />

	<div id="loginForm" >
		<h:form id="login" onsubmit="document.getElementById('login').action='j_security_check';" prependId="false">
			<h:panelGrid columns="2" style="margin-left:54px; margin-right:54px;">
				<p:outputLabel for="j_username" value="Email:" />
				<p:inputText id="j_username" name="j_username" placeholder="Email" required="true"/>
				<p:outputLabel for="j_password" value="Password:" />
				<p:password id="j_password" name="j_password" placeholder="Password"  required="true" />
			</h:panelGrid>
			<p:spacer height="40px"/>
	
			

			
					
				<div id="loginButton">
			<p:commandButton id="submit" value="Login" ajax="false" />
			</div>


		</h:form>
	<h:panelGroup rendered="#{param.utente==1}">
	<div id="errore2">
	<div id="testoErroreLogin2" >Se non sei ancora registrato:<h:link value="Registrati" outcome="register"/> <br/>
	</div>
	</div>
	</h:panelGroup>
	</div>
</div>
</div>
<div id="push">
</div>

</div>

<div id="footer">
<h:button id="homepage" value="Homepage" outcome="home"></h:button>	
</div>


</h:body>
</html>